import request from '@/utils/request'

import {
	transformPostBody,
	transformRequestURL
} from "@/api/queryParam/index.js";

export function EvaluationAnsweraddList(UrlParams, body) {
	return request({
		url: '/elder/evaluation/elder-evaluation-answer/page',
		method: 'post',
		params: transformRequestURL(UrlParams),
		data: transformPostBody(body)
	})
}

export function getEvaluationAnswer(Id) {
	return request({
		url: '/elder/evaluation/elder-evaluation-answer/' + Id,
		method: 'get'
	})
}

export function addEvaluationAnswer(data) {
	return request({
		url: '/elder/evaluation/elder-evaluation-answer/save',
		method: 'post',
		data: transformPostBody(data)
	})
}

export function updateEvaluationAnswer(data) {
	return request({
		url: '/elder/evaluation/elder-evaluation-answer/update',
		method: 'post',
		data: transformPostBody(data)
	})
}

export function delEvaluationAnswer(Ids) {
	return request({
		url: '/elder/evaluation/elder-evaluation-answer/delete',
		method: 'delete',
		data: Ids
	})
}


//外部调用：import { EvaluationAnsweraddList, getEvaluationAnswer, addEvaluationAnswer, updateEvaluationAnswer, delEvaluationAnswer } from '@/api/elder/Evaluation/Answer.js'